home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / vol12no2.zip / LENGT2.BAT < prev    next >
DOS Batch File  |  1992-07-27  |  284b  |  12 lines

  1. @ECHO OFF
  2. CLS
  3. ECHO Type STRING.  End STRING with Ctrl-Z (F6), and then Enter.
  4. COPY CON $$$.BAT > NUL
  5. IF EXIST $$$.BAT TYPE $$$.BAT > $$.BAT
  6. DIR $$.BAT | FIND "$$ " > $$$.BAT
  7. ECHO SET LEN=%%2> $$.BAT
  8. CALL $$$
  9. ECHO           STRING LENGTH = %LEN%
  10. DEL $$?.BAT
  11. ECHO Finished!
  12.